package com.printeverywhere.exception;

import org.apache.log4j.Logger;

public class CredentialException extends Exception{
	
	private static Logger logger=Logger.getLogger(CredentialException.class);

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	public CredentialException() {
		super();
		logger.error("User trying to access module");
	}

	/**
	 * @param message
	 * @param cause
	 */
	public CredentialException(String message, Throwable cause) {
		super(message, cause);
		logger.error(message);
		logger.error(cause);
	}

	/**
	 * @param message
	 */
	public CredentialException(String message) {
		super(message);
		logger.error(message);
		
	}

	/**
	 * @param cause
	 */
	public CredentialException(Throwable cause) {
		super(cause);
		logger.error(cause);
	}
	
	

}
